<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<!-- jQplot CSS -->
<link rel="stylesheet" media="screen" href="css/Tree.css" />
<!-- jQplot CSS END -->
<!-- DATATABLES CSS -->
<link rel="stylesheet" media="screen" href="lib/datatables/css/vpad.css" />
<table class="display" id="example">
	<thead>
		<tr>
			<th>开始日期</th>
			<th>培训课程</th>
			<th>培训类型</th>
			<th>讲师</th>
			<th>打印</th>
			<th>延期</th>
			<th>取消</th>
		</tr>
	</thead>
	<tbody>
		<s:if test="#request.plans==null || #request.plans.size<=0">
			<tr class="gradeA">
				<td colspan="7">暂无数据</td>
			</tr>
		</s:if>
		<s:else>
			<s:iterator var="plan" status="sta" value="#request.plans">
				<s:if test="#sta.even">
					<tr class="gradeA">
				</s:if>
				<s:else>
					<tr class="gradeC">
				</s:else>
				<td><fmt:formatDate value="${plan.planStartDate}"
						pattern="yyyy-MM-dd HH:mm" /></td>
				<td>${plan.title}</td>
				<td>${plan.category}</td>
				<td>${plan.trainLecturer.employeeinfoWork.baseId.name}</td>
				<td><a class="button" href="#train/plan_print_main.xhtml?planId=${plan.id}"><span
						style="background: url(${ctx}/images/img/printer.png)"
						class="icon icon-ok">&nbsp;</span>打印</a></td>
				<td><a class="button" href="#train/plan_delay_manage.xhtml?planId=${plan.id}"><span
						style="background: url(${ctx}/images/img/time_go.png)"
						class="icon icon-ok">&nbsp;</span>延期</a></td>
				<td><a class="button" href="#train/plan_cancel_manage.xhtml?planId=${plan.id}"><span
						style="background: url(${ctx}/images/img/cancel.png)"
						class="icon icon-ok">&nbsp;</span>取消</a></td>

				</tr>
			</s:iterator>
		</s:else>
	</tbody>
</table>
<p>
	<%@ include file="/WEB-INF/pages/common/main_orgtab_pager_train.jsp"%>
</p>
<div class="clear"></div>